package com.cc.visitor.controller;

import com.cc.alltype.ResponseResult;
import com.cc.visitor.entity.LogLogin;
import com.cc.visitor.service.LogLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author chanchaw
 * @create 2024-09-23 7:40
 */
@CrossOrigin
@RestController
@RequestMapping("/logLogin")
public class LogLoginController {
    @Autowired
    private LogLoginService service;
    @PostMapping("/insert8OpenId/{openId}")
    public ResponseResult insert8OpenId(@PathVariable String openId){
        return new ResponseResult(service.insert8OpenId(openId));
    }
    @PostMapping("/insert8record")
    public ResponseResult insert8Record(@RequestBody LogLogin record){
        return new ResponseResult(service.insert(record));
    }
}
